/*
 * @Author: your name
 * @Date: 2021-12-07 19:04:07
 * @LastEditTime: 2021-12-07 20:34:30
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \VUE\12.7-homework\js\list.js
 */
import Mock from 'mockjs'
const data = Mock.mock({
    'list|8': [{
        'title': '@ctitle',
        'img': '@image(100x100,@color)',
        'price|50-5000': 50,
    }]
})
console.log(data);
con.innerHTML = data.list.map(item => {
    return `
    <dl>
        <dt>
            <img src="${item.img}" alt="">
        </dt>
        <dd>${item.title}</dd>
        <dd>${item.price}</dd>
    </dl>
    
    
    `
}).join('')